package com.ruoyi.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activity.mapper.ActSchoolMapper;
import com.ruoyi.activity.domain.ActSchool;
import com.ruoyi.activity.service.IActSchoolService;
import com.ruoyi.common.core.text.Convert;

/**
 * 校级活动Service业务层处理
 * 
 * @author YZD
 * @date 2022-07-12
 */
@Service
public class ActSchoolServiceImpl implements IActSchoolService 
{
    @Autowired
    private ActSchoolMapper actSchoolMapper;

    /**
     * 查询校级活动
     * 
     * @param id 校级活动ID
     * @return 校级活动
     */
    @Override
    public ActSchool selectActSchoolById(Long id)
    {
        return actSchoolMapper.selectActSchoolById(id);
    }

    /**
     * 查询校级活动列表
     * 
     * @param actSchool 校级活动
     * @return 校级活动
     */
    @Override
    public List<ActSchool> selectActSchoolList(ActSchool actSchool)
    {
        return actSchoolMapper.selectActSchoolList(actSchool);
    }

    /**
     * 新增校级活动
     * 
     * @param actSchool 校级活动
     * @return 结果
     */
    @Override
    public int insertActSchool(ActSchool actSchool)
    {
        return actSchoolMapper.insertActSchool(actSchool);
    }

    /**
     * 修改校级活动
     * 
     * @param actSchool 校级活动
     * @return 结果
     */
    @Override
    public int updateActSchool(ActSchool actSchool)
    {
        return actSchoolMapper.updateActSchool(actSchool);
    }

    /**
     * 删除校级活动对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActSchoolByIds(String ids)
    {
        return actSchoolMapper.deleteActSchoolByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除校级活动信息
     * 
     * @param id 校级活动ID
     * @return 结果
     */
    @Override
    public int deleteActSchoolById(Long id)
    {
        return actSchoolMapper.deleteActSchoolById(id);
    }
}
